<div class="top-bar">
  <h1>Index events</h1>
  <div class="breadcrumbs">
    <%= link_to 'events', :controller => :events, :action => :index %> / 
    イベント一覧
  </div>
</div><br />
<div align="right"><%= link_to 'New event' + image_tag("/images/adminpage/add-icon.gif", :size => "16x16", :alt => "Add"), new_event_path %></div>
<div class="table">
  <img src="/images/adminpage/bg-th-left.gif" width="8" height="7" alt="" class="left" />
  <img src="/images/adminpage/bg-th-right.gif" width="7" height="7" alt="" class="right" />
  <table class="listing form" cellpadding="0" cellspacing="0">
    <tr>
        <th class="first" width="177">イベント名</th>
        <th class="last" width="80">操作</th>
    </tr>
<% for event in @events %>
    <tr <%= cycle('class="bg"', "") %> >
        <td class="first style1"><%=h event.name %></td>
        <td class="last">
        <%= link_to image_tag("/images/adminpage/magnifier.png", :size => "16x16", :alt => "Show"), event %>
        <%= link_to image_tag("/images/adminpage/delete.png", :size => "16x16", :alt => "Destroy"), event, :confirm => 'Are you sure?', :method => :delete %>
      </td>
    </tr>
<% end %> 

    <!--  <tr class="bg"> -->
  </table>
</div>
